/**
 * 这里是登陸模块
 * @type {[type]}
 */
var userCarForm = angular.module("UserCarModule", []);
userCarForm.controller('UserFormCtrl', function($scope, $http, $state, $stateParams) {
    $scope.user={
    	username:'John Doe',
    	password : 'john.doe@gmail.com'
    } 

    //请模仿上面的代码，用$http到后台获取数据，把这里的例子实现完整
    
});

function page($scope){
	$scope.filterOptions = {
        filterText: "",
        useExternalFilter: true
    };
    $scope.totalServerItems = 0;
    $scope.pagingOptions = {
        pageSizes: [5, 10, 20],
        pageSize: 5,
        currentPage: 1
    };
    $scope.setPagingData = function(data, page, pageSize) {
        var pagedData = data.slice((page - 1) * pageSize, page * pageSize);
        $scope.books = pagedData;
        $scope.totalServerItems = data.length;
        if (!$scope.$$phase) {
            $scope.$apply();
        }
    };
}
